﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using 简单的屏保;

namespace WinFormCenter.common {
    internal class PageUtil {
        internal static void GoToNewPage(Form formParent, Form formNew) {
            formNew.Owner = formParent;
            formNew.Show();
            formNew.FormClosed += (s, e) => {
                formParent.Show();
            };
            formParent.Visible = false;

            //FormClosed += Form1_FormClosed;

        }
    }
}
